package com.dqy.twserver.server.handle.ehandle;

import com.dqy.twserver.server.dto.GameDto;
import io.netty.channel.socket.nio.NioSocketChannel;

public interface GameEventHandle {
    void handle(GameDto req, NioSocketChannel channel) throws Exception;

    default int roomIdToRid(String roomId){
        String substring = roomId.substring(4, roomId.length());
        return Integer.parseInt(substring);
    }
}
